﻿using com.nm.Attributes;
using com.nm.library;
using System;
using System.Collections.Generic;

namespace VerticaAPI.model
{
    public class MatSuppleShopModel
    {
        public class MatSuppleShop
        {
            /// <summary>
            /// 品牌
            /// </summary>
            public string ExtrSource { get; set; } = UserInfo.UserExtrSource;
            /// <summary>
            /// 公司代码
            /// </summary>
            [ParamDescription("公司代码")]
            public string CompanyID { get; set; } = UserInfo.UserCompanyId;
            /// <summary>
            /// 货号
            /// </summary>
            [ParamDescription("货号")]
            public string MaterialID { get; set; }
            /// <summary>
            /// 所有店铺限制补货
            /// </summary>
            [ParamDescription("所有店铺限制补货")]
            public int AllShopFlag { get; set; }
            /// <summary>
            /// 店铺内码
            /// </summary>
            [ParamDescription("店铺内码")]
            public string ShopID { get; set; }
            /// <summary>
            /// 店铺名称
            /// </summary>
            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }

            /// <summary>
            /// 加载时间
            /// </summary>
            [ParamDescription("加载时间")]
            public DateTime LoadTime { get; set; } = DateTime.Now;
            /// <summary>
            /// 加载时间
            /// </summary>
            [ParamDescription("修改时间")]
            public DateTime EtlTime { get; set; } = DateTime.Now;
        }
        public class MatSuppleShopCoty
        {
            /// <summary>
            /// 品牌
            /// </summary>
            public string ExtrSource { get; set; } = UserInfo.UserExtrSource;
            /// <summary>
            /// 公司代码
            /// </summary>
            [ParamDescription("公司代码")]
            public string CompanyID { get; set; } = UserInfo.UserCompanyId;
            /// <summary>
            /// 货号
            /// </summary>
            [ParamDescription("货号")]
            public string MaterialID { get; set; }
            /// <summary>
            /// 所有店铺限制补货
            /// </summary>
            [ParamDescription("所有店铺限制补货")]
            public int AllShopFlag { get; set; }
            /// <summary>
            /// 店铺内码
            /// </summary>
            [ParamDescription("店铺内码")]
            public string ShopID { get; set; }

            /// <summary>
            /// 加载时间
            /// </summary>
            [ParamDescription("加载时间")]
            public DateTime LoadTime { get; set; } = DateTime.Now;
            /// <summary>
            /// 加载时间
            /// </summary>
            [ParamDescription("修改时间")]
            public DateTime EtlTime { get; set; } = DateTime.Now;
        }

        /// <summary>
        /// 店铺设置明细
        /// </summary>
        [Serializable]
        public class MatSuppleShopDetail
        {
            /// <summary>
            /// 货号
            /// </summary>
            [ParamDescription("货号")]
            public string MaterialID { get; set; }
            /// <summary>
            /// 所有店铺限制补货
            /// </summary>
            [ParamDescription("所有店铺限制补货")]
            public int? AllShopFlag { get; set; }
            /// <summary>
            /// 店铺集合
            /// </summary>
            [ParamDescription("店铺集合")]
            public string ShopIds { get; set; }
        }

        //保存，更新的list
        public class MatSuppleShopSaveList : MatSuppleShop
        {
            public IList<MatSuppleShopDeleteModel> List { get; set; }
        }

        public class MatSuppleShopDeleteModel
        {
            public string MaterialID { get; set; }
            public string AllShopFlag { get; set; }
            public string ShopID { get; set; }

        }

        /// <summary>
        /// 删除实体
        /// </summary>
        public class MatSuppleShopDeleteModelList
        {
            public IList<MatSuppleShopDeleteModel> List { get; set; }
        }
        /// <summary>
        /// 导入的list
        /// </summary>
        public class MatSuppleShopImportModelList
        {
            public IList<MatSuppleShopImportModel> List { get; set; }
        }
        ///导入到model
        public class MatSuppleShopImportModel
        {
            [ParamDescription("货号")]
            public string MaterialID { get; set; }
            [ParamDescription("所有店铺限制补货")]
            public string AllShopFlag { get; set; }
            [ParamDescription("店铺编号")]
            public string ShopID { get; set; }
            /// <summary>
            /// 店铺名称
            /// </summary>
            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }
        }

        public class NM_ShopQuery
        {
            /// <summary>
            /// 店铺编号
            /// </summary>
            [ParamDescription("店铺代码")]
            public string ShopCode { get; set; }
            /// <summary>
            /// 店铺编号
            /// </summary>
            [ParamDescription("店铺编号")]
            public string ShopID { get; set; }
            /// <summary>
            /// 店铺名称
            /// </summary>
            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }
        }


    }
}
